package com.knowledge.review.designPatterns.behavioralpattern.chainofresponsibilitypattern.demo5;

/**
 * @author XFW
 * @date 15:19 2024/5/9
 * @description 测试类
 **/
public class Test {
    public static void main(String[] args) {
        AbstractHandler.Builder builder=new AbstractHandler.Builder();
        builder.addHandler(new AddHandler())
                .addHandler(new DivideHandler())
                .addHandler(new MinusHandler())
                .addHandler(new MultiplyHandler())
                .build()
                .doHandler(null);
    }

}
